package com.lbjhan.rpc.serializer;

import java.io.IOException;

public interface ISerializer<T> {
    public abstract  <T> byte[] serialize(T obj) throws IOException;
    public abstract <T> T deserialize(byte[] bytes, Class<?> clazz) throws IOException, ClassNotFoundException ;
}
